package com.ruoyi.base.config;

import com.ruoyi.base.resolver.RequestBodyParamHandlerMethodArgumentResolver;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.method.support.HandlerMethodArgumentResolver;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

import java.util.List;

/**
 * 配置WebMvcConfigurer
 *
 * @author lcf
 */
@Configuration
public class WebMvcConfig implements WebMvcConfigurer {
    @Override
    public void addArgumentResolvers(List<HandlerMethodArgumentResolver> list) {
        list.add(new RequestBodyParamHandlerMethodArgumentResolver());
        WebMvcConfigurer.super.addArgumentResolvers(list);
    }
}
